package com.cskaoyan.app.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 此处继承UsernamePasswordToken，增加类型字段才能判断不同登录入口
 */
public class CustomAuthToken extends UsernamePasswordToken {
    private LoginType loginType;

    public CustomAuthToken() {
    }

    public CustomAuthToken(String username, String password, LoginType loginType) {
        super(username, password);
        this.loginType = loginType;
    }

    public LoginType getLoginType() {
        return loginType;
    }
}
